package org.plex.model.imp;

import java.util.Date;
import java.util.List;
import java.util.Locale;
import java.util.Set;
import java.util.TimeZone;

import org.plex.model.User;

import com.adobe.idp.Context;

public class UserImp implements User {

	
	private com.adobe.idp.um.api.infomodel.User user;
	
	public com.adobe.idp.um.api.infomodel.User getUser() {
		return user;
	}


	public void setUser(com.adobe.idp.um.api.infomodel.User user) {
		this.user = user;
	}

	

	public UserImp(com.adobe.idp.um.api.infomodel.User user) throws NullPointerException
	{
		if(user==null)
		{
			throw new NullPointerException("传入的User参数不能为NULL!");
		}
		this.user=user;
	}
	
	
	public String getTelephoneNumber() {
		return this.user.getTelephoneNumber();
	}

	public String getBusinessCalendarKey() {
		// TODO Auto-generated method stub
		return this.user.getBusinessCalendarKey();
	}

	public String getFamilyName() {
		// TODO Auto-generated method stub
		return this.user.getFamilyName();
	}

	public String getGivenName() {
		// TODO Auto-generated method stub
		return this.user.getGivenName();
	}

	public String getInitials() {
		// TODO Auto-generated method stub
		return user.getInitials();
	}

	public Locale getLocale() {
		// TODO Auto-generated method stub
		return this.user.getLocale();
	}

	public String getPostalAddress() {
		// TODO Auto-generated method stub
		return this.user.getPostalAddress();
	}

	public TimeZone getTimeZone() {
		// TODO Auto-generated method stub
		return this.user.getTimezone();
	}

	public String getUserid() {
		// TODO Auto-generated method stub
		return this.user.getUserid();
	}

	public boolean isDisabled() {
		// TODO Auto-generated method stub
		return user.isDisabled();
	}

	public void setBusinessCalendarKey(String businessCalendarKey) {
		// TODO Auto-generated method stub
           user.setBusinessCalendarKey(businessCalendarKey);
	}

	public void setDisabled(boolean disabled) {
		 user.setDisabled(disabled);
	}

	public void setFamliyName(String familyName) {
        user.setFamilyName(familyName);
	}

	public void setGivenName(String givenName) {
	user.setGivenName(givenName);
	}

	public void setInitials(String initials) {
		user.setInitials(initials);

	}

	public void setLocale(Locale locale) {
		user.setLocale(locale);
	}

	public void setPostalAddress(String postalAddress) {
		user.setPostalAddress(postalAddress);
	}

	public void setTelephoneNumber(String telephonenumber) {
	user.setTelephoneNumber(telephonenumber);
	}

	public void setTimezone(TimeZone timeZone) {
		user.setTimezone(timeZone);
	}

	public void setUserid(String userid) {
		user.setUserid(userid);
	}

	public void addEmailAlias(String email) {
		user.addEmailAlias(email);
	}

	public void clearEmailAlias() {
	user.clearEmailAlias();

	}

	public String gerPrincipalType() {
		return user.getPrincipalType();
	}

	public String getCanonicalName() {
		// TODO Auto-generated method stub
		return user.getCanonicalName();
	}

	public String getCommonName() {
		// TODO Auto-generated method stub
		return user.getCommonName();
	}

	public String getDescription() {
		// TODO Auto-generated method stub
		return user.getDescription();
	}

	public Set getDirectGroupmenberships() {
		// TODO Auto-generated method stub
		return user.getDirectGroupMemberships();
	}

	public String getDomainCommonName() {
		// TODO Auto-generated method stub
		return user.getDomainCommonName();
	}

	public String getDomainName() {
		// TODO Auto-generated method stub
		return user.getDomainName();
	}

	public String getEmail() {
		// TODO Auto-generated method stub
		return user.getEmail();
	}

	public List getEmailAlias() {
		// TODO Auto-generated method stub
		return user.getEmailAlias();
	}

	public Set getGroupMenberships() {
		// TODO Auto-generated method stub
		return user.getGroupMemberships();
	}

	public String getOid() {
		// TODO Auto-generated method stub
		return user.getOid();
	}

	public String getOrg() {
		// TODO Auto-generated method stub
		return user.getOrg();
	}

	public Set getRoleMenbership() {
		// TODO Auto-generated method stub
		return user.getRoleMembership();
	}

	public String getStatus() {
		// TODO Auto-generated method stub
		return user.getStatus();
	}

	public Date getTimestampCreated() {
		// TODO Auto-generated method stub
		return user.getTimestampCreated();
	}

	public Date getTimestampUpdated() {
		// TODO Auto-generated method stub
		return user.getTimestampUpdated();
	}

	public int getVisibility() {
		// TODO Auto-generated method stub
		return user.getVisibility();
	}

	public boolean isLocal() {
		// TODO Auto-generated method stub
		return user.isLocal();
	}

	public boolean isLocked() {
		// TODO Auto-generated method stub
		return user.isLocked();
	}

	public boolean isSystem() {
		// TODO Auto-generated method stub
		return user.isSystem();
	}

	public void setCanonicalName(String canonicalName) {
		user.setCanonicalName(canonicalName);

	}

	public void setCommonName(String commonName) {
		user.setCommonName(commonName);
	}

	public void setDescription(String description) {
		user.setDescription(description);
	}

	public void setDomainName(String domainName) {
	   user.setDomainName(domainName);
	}

	public void setEmail(String email) {
		user.setEmail(email);
	}

	public void setEmailAliases(List emailList) {
		user.setEmailAliases(emailList);

	}

	public void setIsSystem(boolean isSystem) {
	   user.setIsSystem(isSystem);
	}

	public void setLocked(boolean islocked) {
		user.setLocked(islocked);

	}

	public void setOid(String oid) {
	user.setOid(oid);

	}

	public void setOrg(String org) {
		user.setOrg(org);

	}

	public void setPrincipalType(String type) {
		user.setPrincipalType(type);

	}

	public void setStatus(String status) {
		user.setStatus(status);

	}

	public void setVisibility(int isVisibility) {
		user.setVisibility(isVisibility);

	}

}
